.class Lcom/xingbook/park/d/g;
.super Lorg/xml/sax/helpers/DefaultHandler;


# instance fields
.field a:Ljava/lang/StringBuilder;

.field b:Lcom/xingbook/park/b/a;


# direct methods
.method constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lorg/xml/sax/helpers/DefaultHandler;-><init>()V

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iput-object v0, p0, Lcom/xingbook/park/d/g;->a:Ljava/lang/StringBuilder;

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/d/g;->b:Lcom/xingbook/park/b/a;

    return-void
.end method


# virtual methods
.method public characters([CII)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/d/g;->a:Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1, p2, p3}, Ljava/lang/StringBuilder;->append([CII)Ljava/lang/StringBuilder;

    return-void
.end method

.method public endElement(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    const-string v0, "resource"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/d/g;->b:Lcom/xingbook/park/b/a;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/d/g;->b:Lcom/xingbook/park/b/a;

    iget-object v1, p0, Lcom/xingbook/park/d/g;->a:Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/park/b/a;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/xingbook/park/d/f;->c()Ljava/util/ArrayList;

    move-result-object v0

    iget-object v1, p0, Lcom/xingbook/park/d/g;->b:Lcom/xingbook/park/b/a;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/xingbook/park/d/g;->b:Lcom/xingbook/park/b/a;

    :cond_1
    invoke-super {p0, p1, p2, p3}, Lorg/xml/sax/helpers/DefaultHandler;->endElement(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public startElement(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/xml/sax/Attributes;)V
    .locals 5

    const/16 v4, 0x64

    const/4 v3, -0x1

    iget-object v0, p0, Lcom/xingbook/park/d/g;->a:Ljava/lang/StringBuilder;

    const/4 v1, 0x0

    iget-object v2, p0, Lcom/xingbook/park/d/g;->a:Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->length()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;

    const-string v0, "resource"

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Lcom/xingbook/park/b/a;

    const-string v1, "type"

    invoke-interface {p4, v1}, Lorg/xml/sax/Attributes;->getValue(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, v3}, Lcn/a/a/d/j;->a(Ljava/lang/String;I)I

    move-result v1

    invoke-direct {v0, v1}, Lcom/xingbook/park/b/a;-><init>(I)V

    iput-object v0, p0, Lcom/xingbook/park/d/g;->b:Lcom/xingbook/park/b/a;

    const-string v0, "recursion"

    invoke-interface {p4, v0}, Lorg/xml/sax/Attributes;->getIndex(Ljava/lang/String;)I

    move-result v0

    if-eq v0, v3, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/d/g;->b:Lcom/xingbook/park/b/a;

    const-string v1, "recursion"

    invoke-interface {p4, v1}, Lorg/xml/sax/Attributes;->getValue(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/xingbook/park/d/g;->b:Lcom/xingbook/park/b/a;

    iget v2, v2, Lcom/xingbook/park/b/a;->a:I

    invoke-static {v1, v2}, Lcn/a/a/d/j;->a(Ljava/lang/String;I)I

    move-result v1

    iput v1, v0, Lcom/xingbook/park/b/a;->a:I

    iget-object v0, p0, Lcom/xingbook/park/d/g;->b:Lcom/xingbook/park/b/a;

    iget v0, v0, Lcom/xingbook/park/b/a;->a:I

    if-ge v0, v4, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/d/g;->b:Lcom/xingbook/park/b/a;

    iput v4, v0, Lcom/xingbook/park/b/a;->a:I

    :cond_0
    invoke-super {p0, p1, p2, p3, p4}, Lorg/xml/sax/helpers/DefaultHandler;->startElement(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lorg/xml/sax/Attributes;)V

    return-void
.end method
